The dom destroy path is doing a dom_get on a non-existent domain to
authorshand@ubuntu.eng.hq.xensource.com <shand@ubuntu.eng.hq.xensource.com>
Wed, 14 Sep 2005 22:36:29 +0000 (14:36 -0800)
committershand@ubuntu.eng.hq.xensource.com <shand@ubuntu.eng.hq.xensource.com>
Wed, 14 Sep 2005 22:36:29 +0000 (14:36 -0800)
commitb22d5eebe3bd174446e78f6b64b8d3e7c7f64124
treeeaa431aac69299268d6b66040ea35650e4447361
parent95b767d8e109d10621172621218a4e239ffd25eb
The dom destroy path is doing a dom_get on a non-existent domain to
ensure it is non-existent.  This changes throws an explicit exception
when xc_domain_getinfo returns an error, instead of triggering an
internal python error.  It then handles the exception in dom_get by
returning None, which callers already expect to mean failure.

Signed-off-by: Robert Read <robert@xensource.com>
tools/python/xen/lowlevel/xc/xc.c
tools/python/xen/xend/XendDomainInfo.py